controlAtLoc
Type
function
Summary
Returns the control at the specified location.
Syntax
controlAtLoc(<coordinates>)
Description
The controlAtLoc function returns the control at the given location. The function returns the number of the control, below are examples of getting the name or long id of the control
get the name of (controlAtLoc(coordinates))
get the long ID of (controlAtLoc(coordinates))
Parameters
Name | Type | Description |
---|---|---|
coordinates | point | A location, relative to the current stack |
Examples
put controlAtLoc((10,10))
get the name of (controlAtLoc(the mouseLoc))
Related
function: mouseLoc, controlAtScreenLoc
keyword: control
property: location
Compatibility and Support
Introduced
LiveCode 6.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile